#include "ButtonFactory.h"


void WindowButton::btn_click(){
    cout << "WindowsButton is clicked !" << endl;
};

void MacButton::btn_click(){
    cout << "MacButton is clicked !" << endl;
}

unique_ptr<Button> WindowsButtonFactory::createButton(){
    return std::make_unique<WindowButton>();
}

unique_ptr<Button> MacButtonFactory::createButton(){
    return std::make_unique<MacButton>();
}